<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .box{
            width: 400px;
            height: 400px;
            border:1px solid red;
            line-height: 400px;
            text-align: center;
            transform: rotateZ(0);
        }
        .box1{
            width: 100px;
            height: 100px;
            line-height: 100px;
            border: 1px solid green;
            display: inline-block;
            text-align: center;
        }
        .box:hover .box1{
            /* transform: translate(50px,100px);相对自身位置做位移 */
            /* transform: rotate(30deg) 做角度转换*/
            /* transform: scale(0.5) ;做缩放 */
            transform: rotateZ(30deg);/*3D的,Z轴垂直于屏幕*/
            transition: all 2s 
        }
    </style>
</head>
<body>
    <div class='box'>
        <div class="box1">哈哈</div>
    </div>
</body>
</html>